package com.wdciti.sccp.iot.gateway.domain;

import lombok.Data;

/**
 * @author JINWEN
 */
@Data
public class TagPosition {

    private String tagId;  //渠道唯一标识

    private double longitude;

    private double latitude;

    private double high;

    private long timestamp;

    private String channel;

//  private String personName;
//
//  private String workTypeName;
//
//  private String workTypeColor;

    private String cardId;

    private boolean isAlive;

    public static TagPosition newInstant(String tagId, double longitude, double latitude, long timestamp) {
        TagPosition tagPosition = new TagPosition();
        tagPosition.tagId = tagId;
        tagPosition.longitude = longitude;
        tagPosition.latitude = latitude;
        tagPosition.timestamp = timestamp;
        return tagPosition;
    }

    public static TagPosition newInstant(TagPosition position) {
        TagPosition instance = new TagPosition();
        instance.tagId = position.tagId;
        instance.longitude = position.longitude;
        instance.latitude = position.latitude;
        instance.timestamp = position.timestamp;
        return instance;
    }

}
